﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebHoiChoMuaBan.Models;

namespace WebHoiChoMuaBan.Controllers.Helpers
{
    public class MemberTypeHelper : HelperBase
    {
        public MemberTypeHelper() : base() { }

        public List<MemberType> GetAllMemberType()
        {
            var memberType = from n in this.dataContext.MemberTypes
                             where n.MemTypeUpPoint == -1
                           select n;
            return memberType.ToList();
        }

        public void Save()
        {
            this.dataContext.SubmitChanges();
        }
    }
}